package fun.easycode.webterminal.dao;

import fun.easycode.webterminal.common.contract.Enumerator;

public enum MachineType implements Enumerator<Integer> {
    PASSWORD(1, "密码登录"),
    PUBLIC_KEY(2, "密钥登录")
    ;

    private final Integer value;
    private final String desc;

    MachineType(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public String getDesc() {
        return this.desc;
    }

    @Override
    public Integer getValue() {
        return this.value;
    }

    @Override
    public String toString() {
        return String.valueOf(getValue());
    }
}
